package com.zmh.common.ds;
/** 
 * @author zhoumh
 * @version 创建时间：2017年12月21日 上午9:05:22 
 * @Description 
*/
public class DBContext {
		  
    public static final String DATA_wechat = "dataSourceWechat";    
    public static final String DATA_meta = "dataSourceMeta";    
        
    //线程安全的ThreadLocal
    private static final ThreadLocal<String> contextHolder = new ThreadLocal<String>();
        
    public static void setDBType(String dbType) {    
    	contextHolder.set(dbType);    
    }    
        
    public static String getDBType() {    
        return contextHolder.get();    
    }    
        
    public static void clearDBType() {    
    	contextHolder.remove();    
    }  
	  
	   
}
